home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: Standard question - pointer initialization
- Date: 13 Mar 1996 04:15:25 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Mar12211525@qcd.lanl.gov>
- References: <4hk9un$906@hammer.msfc.nasa.gov> <4i52bk$5el@s02.pavilion.co.uk>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: AJRobb@pavilion.co.uk's message of Tue, 12 Mar 1996 23:47:03 GMT
-
- In article <4i52bk$5el@s02.pavilion.co.uk>
- AJRobb@pavilion.co.uk (Andy J Robb) writes:
- <snip>
- AJR: Off the top of my head, the only time pointers are initialized to NULL
- AJR: is if they are global or static.
-
- Correct. (I mean unless explicitly initialized to NULL).
-
- AJR:
- AJR: The use of calloc() allows a list of NULL initialized pointers to be
- AJR: generated. It is a good idea while code is being developed as it
-
- Absolute nonsense. calloc generates memory initialized to all bits
- zero. This has no relation to null pointers except in confused ramblings.
-
- Sorry for the strong response: I hate it when completely wrong
- statements, those that are contrary to explicit statements in the FAQ
- are delivered confidently. (And yes, I hate it when I do it too).
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-